<template>
  <div class="nav">
    <ul>
      <router-link active-class="active" tag="li" to="/home">
        <i class="iconfont icon-shouye1"></i>
        <p>首页</p>
      </router-link>
      <router-link active-class="active" tag="li" to="/classify">
        <i class="iconfont icon-fangdajing"></i>
        <p>分类</p>
      </router-link>
      <router-link active-class="active" tag="li" to="/cart">
        <i class="iconfont icon-shouye"></i>
        <p>购物车</p>
      </router-link>
      <router-link active-class="active" tag="li" to="/mine">
        <i class="iconfont icon-wode1"></i>
        <p>我的考拉</p>
      </router-link>
    </ul>
  </div>
</template>

<script>
import "../../assets/iconfont/iconfont.css";
export default {
  data() {
    return {};
  },
  mounted() {},
};
</script>

<style lang="scss" scoped>
.nav {
  position: fixed;
  bottom: 0;
  left: 0;
  border-top: 1px solid #ccc;
  height: 50px;
  text-align: center;
  // background: #fff;
  background: #fff;
  // opacity: 0.5;
  color: #7a7e83;
  width: 100%;
  ul {
    display: flex;
    align-items: center;
    li {
      margin-top: 5px;
      flex: 1;
      height: 43px;
      &.active {
        color: #e31436;
      }
      p {
        margin-top: 2px;
        font-size: 12px;
      }
      i {
        font-size: 24px;
      }
    }
  }
}
</style>
